package com.lhh.springcloud.service;

import com.lhh.entity.Result;
import org.springframework.stereotype.Component;

/**
 * @author 李洪豪
 * @Sno 20220301044
 */
@Component
public class CustomFallback implements MemberConsumerOpenFeignService{
    @Override
    public Result queryMemberById(Long id) {
        return Result.error("4xx","被调用服务异常，熔断降级，快速返回结果，防止线程堆积...");
    }
}
